match the grid